            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'category-form',
//            'enableAjaxValidation' => false,
                'enableClientValidation' => true,
                'htmlOptions' => array(
                    'class' => 'form-horizontal',
                    'enctype' => 'multipart/form-data',
                    ),
                ));
                ?>
                <div class="control-group">
                    <label class="control-label" for="form-field-2">Priority</label>
                    <div class="controls">
                        <?php echo $form->textField($model, 'priority', array('size' => 60, 'maxlength' => 255,'class'=>'span5')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'priority'); ?></span>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="form-field-2">Title</label>
                    <div class="controls">
                        <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 255,'class'=>'span5')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'title'); ?></span>
                    </div>
                </div>
                
                <div class="control-group">
                    <label class="control-label">Photo</label>
                    <div class="controls span3" style="margin:10px">
                        <?php echo $form->fileField($model, 'name', array('class' => 'id-input-file-1')); ?>
                        <span class="help-inline"><?php echo $form->error($model, 'name'); ?></span>
                    </div>
                </div>

                <div class="control-group">
                    <div class="controls">
                        <?php if($model['name']):?>
                            <img src="<?php echo Yii::app()->baseUrl.'/timthumb.php?src=' . Yii::app()->baseUrl .'/images/'. $model['name']?>&h=100&w=100">
                        <?php endif;?>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">Status</label>
                    <div class="controls">
                        <?php 
                        echo $form->dropDownlist($model, 'disabled', MyFunctionCustom::$status);?>
                    </div>
                </div>
    
                <div class="control-group" >
                    <label class="control-group">Decription</label>
                </div>       
                    <?php
                        $this->widget('ext.editMe.ExtEditMe', array(
                        //'name' => 'short_description',
                        'id' => 'description_',
                        'height' => '250px',
                        'model' => $model,
                        'width' => '100%',
                        'attribute' => 'description',
                        'toolbar' => Yii::app()->params['ckeditor'],
                        'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html',
                        'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Images',
                        'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Flash',
                        'filebrowserUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                        'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                        'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                    ));
                ?>

                <div class="form-actions">
                    <button class="btn btn-info" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        Submit
                    </button>
                    <button class="btn" type="reset">
                        <i class="icon-undo bigger-110"></i>
                        Reset
                    </button>
                </div>
            <?php $this->endWidget(); ?>